﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AssetsSys.Dto
{
    public class BaseModel
    {
        /// <summary>
        /// 主键Guid
        /// </summary>
        public Guid Id { get; set; } = Guid.NewGuid();

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;

        public string CreateDateString => CreateTime.ToString("yyyy年MM月dd日");

        public string CreateTimeString => CreateTime.ToString(" HH:mm");

        /// <summary>
        /// 是否已删除
        /// </summary>
        public bool IsRemoved { get; set; } = false;

    }
}
